package br.com.sistema.infraestrutura;

import java.io.File;

/**
 *
 * @author Lauro
 */
public class CFG {
    // MODIFICAR CONFORME SERVIDOR INSTALADO  ---------------------------
    public static final String URL_BD = "jdbc:mysql://mercurio2.ciar.ufg.br:3306/noticias";
    public static final String USUARIO_BD = "noticias";
    public static final String SENHA_BD = "macadamia";
    public static final String ENDERECO_HTTP_SITE = "http://localhost:8084/SistemaDeNoticias";
    //public static final String ENDERECO_HTTP_SITE = "http://mercurio2.ciar.ufg.br:8080/ProjetoAlianca";
    public static final String DIRETORIO_ARQUIVOS = "site_files";
    public static final String CAMINHO_DIRETORIO_ARQUIVOS = "/var/lib/tomcat6/webapps/" + CFG.DIRETORIO_ARQUIVOS;
    public static final String URL_HTTP_TOMCAT = "http://mercurio2.ciar.ufg.br:8080/";
    public static final String ENDERECO_BLOG = "http://www.viroucasamento.com.br";
    // ------------------------------------------------------------------
    
    
    // E-MAIL ---------------------------------------------------------
    public static final String SMTP_HOST_NAME = "smtp.gmail.com";
    public static final String SMTP_PORT = "465";
    public static final String SMTP_AUTH_USER = "viroucasamento@gmail.com";
    public static final String SMTP_AUTH_PWD = "macadamia";
    public static final String NOREPPLY_ADDRESS = "noreply@gmail.com";
    
    // ARQUIVOS ---------------------------------------------------------
    public static final int KB = 1024;
    public static final int MB = 1024 * KB;
    public static final int MAX_MEMORY_SIZE = 10 * MB;
    public static final File TMP_DIRECTORY = new File(System.getProperty("java.io.tmpdir"));
    public static final String ENCODING = "UTF-8";
    public static final long MAX_UPLOAD_SIZE = 10 * MB;
    public static String PAGINA_PRINCIPAL = "editor";
}
